package com.Comprehensive.Exercise;

public class Cat extends Animal {
    public Cat() {
    }

    public Cat(int age, String color) {
        super(age, color);
    }

    //定义一个行为:
    @Override
    public void eat(String something){
        System.out.println(getAge() + "岁的" + getColor() + "颜色的猫咪眯着眼睛侧着头吃 "  + something);
    }
    public void Catch(){
        System.out.println("猫在捉老鼠");
    }
}
